public class But {
	public static void main(String args[]) {
		formula(1);
		formula(2);
		formula(3);
		formula(4);
		formula(5);
		formula(6);
		formula(7);
		formula(8);
		formula(9);
		formula(10);
		formula(15);
		formula(20);
		formula(25);
		formula(26);
		formula(31);
		formula(50);
		formula(75);
		formula(100);
		formula(125);
		formula(126);
		formula(131);
		formula(156);
		formula(250);
		formula(375);
		formula(500);
		formula(625);

	}

	/**
	 * 公式法
	 * 
	 * @param n
	 * @return
	 */
	static void formula(int level) {
		long addValue = level * (level + 1) / 2 * 100; // 本次要加的值
		long lastScore = 0; // 上次的分值
		for (int i = 1; i < level; i++) {
			lastScore = lastScore + i * (i + 1) / 2 * 100;
		}
		long socre = addValue + lastScore;

		System.out.println("level:" + level + ";\taddValue:" + addValue
				+ ";\tScore:" + socre);
		System.out
				.println("------------------------------------------------------------------------------------");
	}

	/**
	 * 高斯法
	 * 
	 * @param n
	 * @return
	 */
	static long gauss(int n) {
		int a = 0;
		for (int i = 1; i <= n; i++) {
			a = a + i;
		}
		return a;
	}
}
